add_library(dyn_services_sec_storage_obj OBJECT src/service_sec_storage.c src/service_sec_storage_func.c)

target_include_directories(dyn_services_sec_storage_obj PUBLIC inc)
target_include_directories(dyn_services_sec_storage_obj PRIVATE ${SE_BASE_SERVICES_DEFAULT_INC})
target_compile_options(dyn_services_sec_storage_obj PRIVATE ${SE_BASE_SERVICES_DEFAULT_CC})
target_link_libraries(dyn_services_sec_storage_obj PRIVATE dyn_services_main_obj)
target_link_libraries(dyn_services_sec_storage_obj PRIVATE se_base_services_fwk_obj)
target_link_libraries(dyn_services_sec_storage_obj PRIVATE logger_obj)
target_link_libraries(dyn_services_sec_storage_obj PRIVATE se_base_services_defines)
target_link_libraries(dyn_services_sec_storage_obj PRIVATE se_apdu_core_obj)
target_link_libraries(dyn_services_sec_storage_obj PRIVATE se_modules_sec_storage_ipc_stub_obj)
target_link_libraries(dyn_services_sec_storage_obj PRIVATE se_modules_common_ipc_stub_obj)

if(OPTION_SECUREC_INDEPENDENT)
    message(STATUS "dyn_services_sec_storage_obj use independent secure c.")
    target_link_libraries(dyn_services_sec_storage_obj PRIVATE securec_interface)
endif()
